package com.easyadmin.service;

import com.easyadmin.entity.po.SysOperationLog;
import com.easyadmin.entity.query.SysOperationLogQuery;
import com.easyadmin.entity.vo.PaginationResult;
import com.easyadmin.exception.BusinessException;

import java.util.List;


/**
 * 操作日志 业务接口
 */
public interface SysOperationLogService {

    /**
     * 根据条件查询列表
     */
    List<SysOperationLog> findListByParam(SysOperationLogQuery param);

    /**
     * 根据条件查询列表
     */
    Integer findCountByParam(SysOperationLogQuery param);

    /**
     * 分页查询
     */
    PaginationResult<SysOperationLog> findListByPage(SysOperationLogQuery param);

    /**
     * 新增
     */
    Integer add(SysOperationLog bean) throws BusinessException;

    /**
     * 批量新增
     */
    Integer addBatch(List<SysOperationLog> listBean);

    /**
     * 批量新增/修改
     */
    Integer addOrUpdateBatch(List<SysOperationLog> listBean);

    /**
     * 根据Id修改
     */
    Integer updateById(SysOperationLog bean, Integer id);


    /**
     * 根据Id删除
     */
    Integer deleteById(Integer id);


    /**
     * 根据Id查询对象
     */
    SysOperationLog getSysOperationLogById(Integer id);


    void saveSysOperationLog(SysOperationLog log);
}